﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Web;

namespace Reviewed.Models
{
    public class ReviewedContext : DbContext
    {
        public DbSet<Review> Reviews { get; set; }
        public DbSet<Category> Categories{ get; set; }
        public DbSet<Comment> Comments { get; set; }
        //public DbSet<Survey> Survies { get; set; }

        public ReviewedContext()
        {
            Configuration.ProxyCreationEnabled = false;
        }
        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            
            //Database.SetInitializer(new MigrateDatabaseToLatestVersion<ReviewedContext, Configuration>());
            //Database.SetInitializer(new ReviewedContextInitializer());
        }

        public DbSet<Reviewed.Models.Survey> Surveys { get; set; }

        public DbSet<Reviewed.Models.Feedback> Feedbacks { get; set; }
    }
}